import request from "@/utils/request";

/**
 * 最新剧目
 * @param area 地区
 * @returns {*}
 */
export function topPublish() {
    return request({
        url: '/drama/index',
        headers: {
            isToken: false
        },
        method: 'get',
    })
}

/**
 * 热播视频
 * @param area
 * @returns {*}
 */
export function popularDrama() {
    return request({
        url: '/drama/polular',
        method: 'get',
    })
}

export function detail(dramaId) {
    return request({
        url: `/drama/${dramaId}`,
        method: 'get'
    })
}


export function queryDrama(data) {
    return request({
        url: `/drama/query`,
        method: 'post',
        data: data
    })
}
